package com.zh.note.controller;

import cn.hutool.core.util.IdUtil;
import com.zh.note.service.PayService;
import org.springframework.boot.SpringBootVersion;
import org.springframework.core.SpringVersion;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class PayAopController {


    @Resource
    private PayService payService;

    @GetMapping(value = "/pay/aop")
    public String pay() {
        System.out.println("SpringVersion: " + SpringVersion.getVersion() + "\t" + "SpringBootVersion: " + SpringBootVersion.getVersion());

        payService.pay();


        return IdUtil.simpleUUID();
    }


}
